HTML Codes Help
HTML Code Help

Scroll through this list.  Copy what you need to use.  Most common codes are shown on the first line with other options indented.

<!-- .. -->  (Comments)

<!DOCTYPE>  (Version of HTML)

<A HREF=reference NAME=name> </A>
   (Designates a Link)
      CLASS=type
      ID=value
      onClick=function
      onMouseOver=function
      REL=SAME|NEXT|PARENT|PREVIOUS
      REV=value
      STYLE=style
      TARGET=window
      TITLE=title

<ADDRESS></ADDRESS>  (Ownership Information)

<APPLET CODE=appletFile CODEBASE=codebaseURL
   HEIGHT=pixels WIDTH=pixels>
   (Inserts JAVA Script)
      ALIGN=LEFT|CENTER|RIGHT|TOP|MIDDLE|BOTTOM
      ALT=alternateText
      DOWNLOAD=n
      HSPACE=pixels
      NAME=appletInstanceName
      TITLE=text
      VSPACE=pixels
   <PARAM NAME=AttributeName ...>
   </APPLET>

<AREA SHAPE=RECT|RECTANGLE|CIRC|CIRCLE
   |POLY|POLYGON COORDS=coords HREF=url>
   (defines a hot spot)
      ALT=text
      CLASS=type
      ID=value
      NOHREF
      NOTAB
      STYLE=css1 properties
      TABINDEX=n
      TARGET=window
      TITLE=text>

<B></B>  (bold text)

<BASE HREF=url>  (document's URL in HEAD)
      TARGET=window

<BASEFONT SIZE=n>  (base font values)
      COLOR=color
      NAME=name

<BGSOUND LOOP=n|INFINITE SRC=url>
   (plays background sound)

<BIG></BIG>  (enlarges text one size)

<BLOCKQUOTE></BLOCKQUOTE>
   (indents both margins)

<BODY ALINK=color BACKGROUND=url BGCOLOR=color
   LINK=color TEXT=color VLINK=color>
   (sets document body)
      BGPROPERTIES=FIXED
      CLASS=type
      ID=value
      LEFTMARGIN=n
      STYLE=css1 properties
      TOPMARGIN=n
   </BODY>

<BR>  (line break)
      CLASS=type
      CLEAR=NONE|LEFT|RIGHT|ALL

<CAPTION ALIGN=CENTER|LEFT|RIGHT
   VALIGN=TOP|BOTTOM>
   (table caption)
   </CAPTION>

<CENTER></CENTER>  (centers text and images)

<CITE></CITE>  (cites reference material)

<CODE></CODE>  (displays computer code)

<COL ALIGN=LEFT|CENTER|RIGHT SPAN=n>
   (individual column properties of COLGROUP)

<COLGROUP SPAN=n HALIGN=CENTER|LEFT|RIGHT>
      VALIGN=MIDDLE|TOP|BOTTOM
      WIDTH=n
   (column properties in a TABLE)

<COMMENT></COMMENT>  (comment)

<DD>  (dictionary definition in DL)
   CLASS=type
   ID=value
   STYLE=css1 properties

<DFN></DFN>  (displays a definition)

<DIR>  (encases a list, uses LI)
      COMPACT
   </DIR>

<DIV>  (encases a section)
      ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
      CLASS=type
      ID=value
      LANG=iso
      NOWRAP
   </DIV>

<DL>  (encases a dictionary list)
      CLASS=type
      COMPACT
      ID=value
      STYLE=css1 properties>
   </DL>

<DT>  (dictionary term in DL)

<EM></EM>  (emphased text, usually italics)

<EMBED SRC=url HEIGHT=n WIDTH=n>
   (embedded object)
      NAME=text
      [optional parameter=&quot;value&quot;]
      PALETTE=#rgb|#rgb
      UNITS=PIXELS|EN
   </EMBED>

<FONT COLOR=color FACE=name SIZE=n>
   (font characteristics)

<FORM ACTION=url METHOD=GET|POST>
   (form)
      onSubmit=event
      TARGET=window
   </FORM>

<FRAME ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
   SCROLLING=yes|no SRC=address FRAMEBORDER=1|0>
   (single frame characteristics in FRAMESET)
      MARGINHEIGHT=height
      MARGINWIDTH=width
      NAME=name
      NORESIZE

<FRAMESET COLS=col-widths FRAMEBORDER=1|0
   SCR=url SCROLLING=yes|no>
   (encases FRAME, FRAMESET, NOFRAMES)
      FRAMESPACING=spacing
      ROWS=row-heights>
   </FRAMESET>

<Hn>  (heading levels)
      ALIGN=LEFT|CENTER|RIGHT>
   </Hn>

<HEAD></HEAD>  (HTML document heading)

<HR ALIGN=LEFT|CENTER|RIGHT SIZE=n WIDTH=n>
   (horizonal line)
      CLASS=type
      COLOR=color
      ID=value
      NOSHADE
      STYLE=css1 properties

<HTML></HTML>  (encases HTML document)

<I></I>  (italics)

<IFRAME FRAMEBORDER=1|0 SCROLLING=yes|no
   SRC=address>
   (floating frame)
      ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
      HEIGHT=height
      MARGINHEIGHT=height
      MARGINWIDTH=width
      NAME=name
      WIDTH=width
   </IFRAME>

<IMG ALIGN=TOP|MIDDLE|CENTER|BOTTOM|LEFT|RIGHT
   ALT=text SRC=url>
   (Image)
      BORDER=n
      CLASS=type
      CONTROLS
      DYNSRC=url
      HEIGHT=n
      HSPACE=n
      ID=value
      ISMAP=image
      LOOP=n
      START=start-event
      STYLE=css1 properties
      TITLE=text
      USEMAP=url
      VSPACE=n
      WIDTH=n

<INPUT NAME=name TYPE=TEXT|TEXTAREA|PASSWORD
   |CHECKBOX|RADIO|SUBMIT|RESET|FILE|HIDDEN
   |IMAGE|BUTTON VALUE=value>
   (form control in FORM)
      ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT
      CHECKED
      CLASS=type
      ID=value
      MAXLENGTH=length
      NOTAB
      onBlur=event
      onChange=event
      onClick=event
      onFocus=event
      onSelect=event
      SIZE=size
      SRC=url
      STYLE=css1 properties
      TABINDEX=n
      TITLE=text

<ISINDEX ACTION=url PROMPT=prompt-text>
   (searchable index in HEAD)

<KBD></KBD>  (keyboard text)

<LI>
   (one item of DIR, MENU, OL, UL)
      CLASS=type
      ID=value
      STYLE=css1 properties
      TYPE=order-type
      VALUE=n

<LINK HREF=url>
   (relational information in HEAD)
   REL=forward link type
   REV=reverse link type
   TITLE=title
   TYPE=type

<LISTING></LISTING>  (shows fixed-width text)

<MAP NAME=name></MAP>
   (collection of hot spots, used with AREA)

<MARQUEE BEHAVIOR=SCROLL|SLIDE|ALTERNATE LOOP=n>
   (scrolling text marquee)
      ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
      BGCOLOR=color
      DIRECTION=direction
      HEIGHT=n
      HSPACE=n
      SCROLLAMOUNT=n
      SCROLLDELAY=n
      VSPACE=n
      WIDTH=n
   </MARQUEE>

<MENU>  (list of items, used with LI)
      COMPACT
   </MENU>

<META HTTP-EQUIV=response NAME=description URL=url>
   (instructions to other applications in HEAD)
      CHARSET=charset
      CONTENT=description

<NOBR>  (turns off line break)

<NOFRAMES></NOFRAMES>
   (displays only on no frame browsers)

<OBJECT>  (inserts object in document)
      ALIGN=LEFT|TEXTTOP|MIDDLE|TEXTMIDDLE
         |BASELINE|TEXTBOTTOM|CENTER|RIGHT
      BORDER=n
      CLASSID=url
      CODEBASE=url
      CODETYPE=codetype
      DATA=url
      DECLARE
      HEIGHT=n
      HSPACE=n
      NAME=url
      NOTAB
      SHAPES
      STANDBY=message
      TABINDEX=n
      TITLE=text
      TYPE=type
      USEMAP=url
      VSPACE=n
      WIDTH=n
   </OBJECT>

<OL>  (encases numbered list, uses LI)
   CLASS=type
   COMPACT
   ID=value
   START=n
   STYLE=css1 properties
   TYPE=order-type

<OPTION VALUE=value>
   (shows item in a list box in SELECT)
      SELECTED

<P>  (paragraph break)
   ALIGN=LEFT|CENTER|RIGHT
   CLASS=type
   ID=value
   STYLE=css1 properties

<PARAM NAME=name TYPE=type VALUE=value
   VALUETYPE=type>
   (property values of an object in OBJECT)

<PLAINTEXT></PLAINTEXT>
   (fixed-width text disabling HTML parsing)

<PRE></PRE>  (fixed-width text)

<S></S>  (strike-through text)

<SAMP></SAMP>  (sample text in small font)

<SCRIPT LANGUAGE=scripting language>
   (insert script)
      SRC=filename
      TYPE=MIME type>
   </SCRIPT>

<SELECT NAME=name>  (list or drop down box)
      SIZE=n
   </SELECT>

<SMALL></SMALL>  (reduces text by one size)

<SPAN STYLE=css1 properties></SPAN>
   (text style and HTML information)

<STRIKE></STRIKE>  (strike-through text)

<STRONG></STRONG>  (emphasizes text, bold)

<STYLE>
   (style sheet settings)
      TITLE=title
      TYPE=MIME type
   </STYLE>

<SUB></SUB>  (subscript text)

<SUP></SUP>  (superscript text)

<TABLE BORDER=n CELLPADDING=n WIDTH=n>
   (table uses TR, TD, TH)
      ALIGN=LEFT|CENTER|RIGHT|BLEEDLEFT
         |BLEEDRIGHT|JUSTIFY
      BACKGROUND=url
      BGCOLOR=color
      BORDERCOLOR=color
      BORDERCOLORDARK=color
      BORDERCOLORLIGHT=color
      CELLSPACING=n
      CLASS=type
      CLEAR=LEFT|RIGHT|ALL|NO
      COLS=n
      FRAME=frame-type
      ID=value
      NOWRAP
      RULES=rule-type
      STYLE=css1 properties
      VALIGN=TOP|MIDDLE|BOTTOM|BASELINE
   </TABLE>

<TBODY>  (multiple sections in TABLE)
      CLASS=type
      ID=value
      STYLE=css1 properties>
   </TBODY>

<TD COLSPAN=n HEIGHT=n ROWSPAN=n WIDTH=n>
   (creates a cell in TABLE)
      ALIGN=CENTER|LEFT|RIGHT|JUSTIFY
      BACKGROUND=url
      BGCOLOR=color
      BORDERCOLOR=color
      BORDERCOLORDARK=color
      BORDERCOLORLIGHT=color
      CLASS=type
      ID=value
      NOWRAP
      STYLE=css1 properties
      VALIGN=MIDDLE|TOP|BOTTOM|BASELINE

<TEXTAREA>  (user input text area)
      COLS=n
      NAME=name
      ROWS=n
   </TEXTAREA>

<TFOOT>  (footer for TABLE at page breaks)
      CLASS=type
      ID=value
      STYLE=css1 properties
   </TFOOT>

<TH>  (creates a bold cell in TABLE)
      ALIGN=CENTER|LEFT|RIGHT|JUSTIFY
      BACKGROUND=url
      BGCOLOR=color
      BORDERCOLOR=color
      BORDERCOLORDARK=color
      BORDERCOLORLIGHT=color
      CLASS=type
      COLSPAN=n
      ID=value
      NOWRAP
      ROWSPAN=n
      STYLE=css1 properties
      VALIGN=TOP|MIDDLE|BOTTOM|BASELINE
      WIDTH=n

<THEAD>  (heading in TABLE at page breaks)
   ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
   CLASS=type
   ID=value
   STYLE=css1 properties
   VALIGN= MIDDLE|TOP|BOTTOM

<TITLE></TITLE>  (title of document in HEAD)

<TR>  (creates a row in TABLE)
      ALIGN=CENTER|LEFT|RIGHT|JUSTIFY
      BGCOLOR=color
      BORDERCOLOR=color
      BORDERCOLORDARK=color
      BORDERCOLORLIGHT=color
      CLASS=type
      ID=value
      NOWRAP
      STYLE=css1 properties
      VALIGN=MIDDLE|TOP|BOTTOM|BASELINE>
   </TR>

<TT></TT>  (teletype text)

<U></U>  (underlined text)

<UL>  (bulleted list using LI)
      CLASS=type
      COMPACT
      ID=value
      STYLE=css1 properties>
   </UL>

<VAR></VAR>  (variable text)

<WBR>  (suggested line break in NOBR)

<XMP></XMP>  (fixed width text)